-- GENERATED SPELL FOR [Tunnel Rat Geomancer] --


function spell0_1174(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(2136,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1174', 0, 1)
end

function spell1_1174(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1174', 1000, 1)
end

function spell2_1174(pUnit, Event) --@Quick Flame Ward,n/a--
pUnit:FullCastSpellOnTarget(4979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1174', 11500, 1)
end

function Sorts_1174(pUnit, Event)
local choix_sorts_1174 = math.random(0, 2)
if choix_sorts_1174 == 0 then
pUnit:RegisterEvent('spell0_1174', 1, 1)
end
if choix_sorts_1174 == 1 then
pUnit:RegisterEvent('spell1_1174', 1, 1)
end
if choix_sorts_1174 == 2 then
pUnit:RegisterEvent('spell2_1174', 1, 1)
end
end

function mob1174_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1174', math.random(1500, 3000), 1)
end

function mob1174_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1174_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1174_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1174, 1, 'mob1174_Action')
RegisterUnitEvent(1174, 2, 'mob1174_Leave')
RegisterUnitEvent(1174, 3, 'mob1174_Kill')
RegisterUnitEvent(1174, 4, 'mob1174_Die')
